Skip to content

Encore: add guide to use Encore in a virtual machine #11422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Encore: add guide to use Encore in a virtual machine #11422

wants to merge 3 commits into from

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Apr 13, 2019

Hi, ✋

As the title says, this PR add a new guide for using Encore in a virtual machine.

This is what we use on ours Symfony apps at work which run inside a Vagrant VM.
It works really fine and I thought it would be helpful to share it with other people.

Also, I've removed a sub-section in the actual doc because according to symfony/webpack-encore#277, it was not working because some additional configuration was missing (and I can confirm it because I'm one of his co-worker 😛).

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This was always a bit obscure and I'm glad that some Encore expert is contributing new docs for it. Thanks.

Encore.configureWatchOptions(watchOptions => {
watchOptions.poll = 250; // check for changes every 250 ms
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add a note here about the CLI equivalent (--watch-poll)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep why not, but it means that the user will have to pass --watch-poll two times in its package.json 😕

@Kocal
Copy link
Member Author

Kocal commented Apr 15, 2019

Thanks @javiereguiluz and @Lyrkan, reviews have been applied :)

@javiereguiluz
Copy link
Member

Hugo, thanks as always for contributing these docs. We made some minor rewords while merging ... but we maintained most of your original work.

@Kocal Kocal deleted the encore/virtual-machine branch April 25, 2019 09:40
@Kocal
Copy link
Member Author

Kocal commented Apr 25, 2019

Don't worry and thanks for the rewords. Next time will be better! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants